import { FC, memo } from "react";
interface ISvgIconProps {
	width?: number;
	height?: number;
	name: string;
	color?: string;
}
const SvgIcon: FC<ISvgIconProps> = props => {
	const { width = 16, height = 16, name, color } = props;
	return (
		<svg aria-hidden="true" width={width} height={height} fill={color}>
			<use href={`#${name}`} />
		</svg>
	);
};

export default memo(SvgIcon);
